package com.guage.model;
import com.guage.commons.result.PageInfo;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 商品所属品类关系
 * </p>
 *
 * @author dechao.yang
 * @since 2017-12-14
 */
@TableName("shop_goods_category_relate")
public class ShopGoodsCategoryRelate extends Model<ShopGoodsCategoryRelate> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 商品编号
     */
	@TableField("good_id")
	private Long goodId;
    /**
     * 品类编号
     */
	@TableField("category_id")
	private Long categoryId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getGoodId() {
		return goodId;
	}

	public void setGoodId(Long goodId) {
		this.goodId = goodId;
	}

	public Long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Long categoryId) {
		this.categoryId = categoryId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
